const child = require("../src/utils/fork_worker.js");

  child.onMsg((e, send) => {
    console.log("child接收到", e);
    send({ msg: e.msg + 1 });
  });
  // console.log(process.argv.find((e,i)=>{
  //     return i==2
  // }),process.pid)
  console.log("fork_worker 发送 0");
  child.sendMsg({ msg: 0 }).then((res) => {
    console.log("father响应", res);

  });

